package com.util;

import com.gui.NotesForm;
import java.awt.GraphicsConfiguration;
import java.awt.HeadlessException;
import java.awt.event.WindowEvent;
import javax.media.Player;
import javax.swing.JFrame;

/**
 *
 * @author Carla Sukeyosi
 */
public class MultimediaLauncher extends JFrame
{
    public NotesForm nForm;
    public Player player;
    
    public MultimediaLauncher(String string, GraphicsConfiguration gc) 
    {
        super(string, gc);
    }

    public MultimediaLauncher(String string) throws HeadlessException 
    {
        super(string);
    }

    public MultimediaLauncher(GraphicsConfiguration gc) 
    {
        super(gc);
    }

    public MultimediaLauncher() throws HeadlessException 
    {
        
    }

    public void formWindowClosed(WindowEvent evt) 
    {
        nForm.setVisible(true);
        try
        {
            player.stop();
        } catch (NullPointerException ex)
        {
            //do nothing
        }
    }
    
}
